home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / docs / howto / X11R3_defaults < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.4 KB  |  27 lines

  1. Traditionally you X defaults live in ~/.Xdefaults, but this need not be, and
  2. it is actually to in your advantage to place them somewhere else!
  3.    Ok, when a clients needs a default value, it first asks the server which
  4. looks into its (megabytes) of memory; if that fails the server looks
  5. for an environment variable called XENVIRONMENT for a file name (or
  6. takes ~/.Xdefaults) and looks into that file. If that also fails, some
  7. system-wide file or a hard-coded value is used (I actually dunno).
  8.  
  9. ~/.Xdefaults vs. xrdb:
  10. In a nutshell: if you load the defaults into the server (see below), it's
  11. supposed to be faster, your defaults are piped thru cpp and all applications
  12. get the same defaults. If you don't load them into the server and rely
  13. on ~/.Xdefaults, the defaults are easier to change (edit the file) but
  14. if you rlogin to another machine and start a client there, that client
  15. will see a (probably) different ~/.Xdefaults file (I mean if you rlogin
  16. to a non-sprite host). So once you are comfortable with your defaults,
  17. I suggest you use xrdb to load the defaults into the server.
  18.  
  19. How to load the defaults into the server:
  20. Place the following command into your ~/.xinitrc script (or type it
  21. after you edit your ~/.Xdefaults):
  22.     xrdb -load ~/.Xdefaults
  23. If you want to try some new defaults quickly, type "xrdb -merge" which
  24. reads additional defaults from stdin (you can type them). For more
  25. info refer to the man page.
  26.                 -Thorsten (tve@sprite.berkeley.edu)
  27.